home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / ODF Release 3 / ODFDev / ODF / Tools / Mac / FWSetBuildPaths < prev    next >
Encoding:
Text File  |  1996-12-16  |  2.5 KB  |  67 lines  |  [TEXT/MPS ]

  1. #========================================================================================
  2. #
  3. #    File:                FWSetBuildPaths
  4. #    Release Version:    $ ODF 3 $
  5. #
  6. #    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. #
  8. #========================================================================================
  9.  
  10. #-----------------------------------------------------------------------
  11. #    Location of the current build folder.
  12. #-----------------------------------------------------------------------
  13. Set FWBuildDir `Directory`
  14. Export FWBuildDir
  15. If ¬ `Exists "{FWBuildDir}"`
  16.     Echo "FWSetBuildPaths: Can not find the build folder directory: {FWBuildDir}"
  17.     Exit 1
  18. End
  19.  
  20. #-----------------------------------------------------------------------
  21. #    Parse the current directory to extract the compiler, processor and 
  22. #    build type
  23. #-----------------------------------------------------------------------
  24.  
  25. Execute FWParseCurrentPathName
  26.  
  27. #-----------------------------------------------------------------------
  28. #    Location of the current build definitions.
  29. #-----------------------------------------------------------------------
  30. Set FWBldDefDir "{ODF}(Build Definitions):{FWProcessor}{FWBldType}:"
  31. Export FWBldDefDir
  32. If ¬ `Exists "{FWBldDefDir}"`
  33.     Echo "FWSetBuildPaths: Can not find the build definitions directory: {FWBldDefDir}"
  34.     Exit 1
  35. end
  36.  
  37. #-----------------------------------------------------------------------
  38. #    Location to put libraries.
  39. #-----------------------------------------------------------------------
  40. Set FWLibDir "{FWBuildDir}Lib:"
  41. Export FWLibDir
  42.  
  43. #-----------------------------------------------------------------------
  44. #    Location to put built parts.
  45. #    (Assumed to be in the default directory.)
  46. #-----------------------------------------------------------------------
  47. Set FWBinDir ":Bin:"
  48. Export FWBinDir
  49.  
  50. #-----------------------------------------------------------------------
  51. #    Location to put objects.
  52. #    (Assumed to be in the default directory.)
  53. #-----------------------------------------------------------------------
  54. Set FWObjDir ":Obj:"
  55. Export FWObjDir
  56.  
  57. #-----------------------------------------------------------------------
  58. #    Location to put Precompiled headers.
  59. #    (If not specified then assume they are in the current build 
  60. #     environment in a folder named: "Precompile Headers:". [sfu])
  61. #    This is working because we don't use Symantec to build the ODFLibrary
  62. #-----------------------------------------------------------------------
  63. #if ¬ "{FWPreCompHdrDir}"
  64.     Set FWPreCompHdrDir "{ODF}{FWCompiler}{FWProcessor}{FWBldType}:Precompile∂ Headers:"
  65.     Export FWPreCompHdrDir
  66. #End
  67.